#include<iostream>
#include<iomanip>
using namespace std;
double t;
int n;

int main()
{
	cin >> t >> n;
	double ans = t * 1.0 / n;
	cout << fixed << setprecision(3) << ans << endl;
	cout << 2 * n << endl;
	return 0;
}